package com.wxy.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wxy
 * @since 2021-06-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Menu extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单URL
     */
    private String url;

    private String component;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 权限代码
     */
    private String permissionCode;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 父菜单ID
     */
    private Integer parentId;

    /**
     * 隐藏
     */
    private Integer hidden;

    /**
     * 是否禁用
     */
    private Boolean isDisable;

}
